package com.example.safeassistan.ui.login.model;

import java.math.BigDecimal;

public class AccountModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : {"todayGet":0,"totalGet":null,"inviteNumber":0,"balance":null,"sevenEarnings":0,"thisMonth":0}
     * timestamp : 1611138522825
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * todayGet : 0
         * totalGet : null
         * inviteNumber : 0
         * balance : null
         * sevenEarnings : 0
         * thisMonth : 0
         */

        private BigDecimal todayGet;
        private BigDecimal totalGet;
        private Integer inviteNumber;
        private BigDecimal balance;
        private BigDecimal sevenEarnings;
        private BigDecimal thisMonth;

        public BigDecimal getTodayGet() {
            return todayGet;
        }

        public void setTodayGet(BigDecimal todayGet) {
            this.todayGet = todayGet;
        }

        public BigDecimal getTotalGet() {
            return totalGet;
        }

        public void setTotalGet(BigDecimal totalGet) {
            this.totalGet = totalGet;
        }

        public Integer getInviteNumber() {
            return inviteNumber;
        }

        public void setInviteNumber(Integer inviteNumber) {
            this.inviteNumber = inviteNumber;
        }

        public BigDecimal getBalance() {
            return balance;
        }

        public void setBalance(BigDecimal balance) {
            this.balance = balance;
        }

        public BigDecimal getSevenEarnings() {
            return sevenEarnings;
        }

        public void setSevenEarnings(BigDecimal sevenEarnings) {
            this.sevenEarnings = sevenEarnings;
        }

        public BigDecimal getThisMonth() {
            return thisMonth;
        }

        public void setThisMonth(BigDecimal thisMonth) {
            this.thisMonth = thisMonth;
        }
    }
}
